const Chlid = (props) => {
    return (
        <>
            <div className={props.class}>{props.name}</div>
        </>
    )
}

const Props = () => {
    return (
        <>
            <Chlid class={"child"} name={"这是孩子组件"} />
        </>
    )
}

export default Props;